package org.mytool.common.db;

public class TableConvert {
	public static String getNullAble(String nullable) {
		if (("YES".equals(nullable)) || ("yes".equals(nullable))
				|| ("y".equals(nullable)) || ("Y".equals(nullable))) {
			return "Y";
		}
		if (("NO".equals(nullable)) || ("N".equals(nullable))
				|| ("no".equals(nullable)) || ("n".equals(nullable))) {
			return "N";
		}
		return null;
	}
	
	/**
	 * 
	 * @param columnKey
	 * @return
	 */
	public static boolean ifPrimkey(String columnKey){
		if(columnKey!=null &&columnKey.equals("PRI")){
			return true;
		}
		return false;
	}
}